package finance

class InvestmentItem {

	Long id
    Long version
    String name
    String symbol
    BigDecimal latest_price
    Date last_updated
    InvestmentType type
	
    static constraints = {
    }
	
	static mapping = {
		table 'investment_item'
        columns {
        	id column: 'investment_item_id'
        }
	}
	
	String toString() {
		return "Investment Item: ${id}, ${symbol}, ${name}, ${latest_price}, ${type}"
	}
}
